#pragma once

#include <zenoui/Widget.hpp>
#include <zenoui/draws/ButtonRectDraw.hpp>
#include <zenoui/widgets/LabelWidget.hpp>

namespace zenoui {

struct ButtonWidget : LabelWidget {
protected:
    bool m_pressed = false;
    ButtonRectDraw m_button_rect_draw;

    void handle(MouseClickEvent *event) override;
    void handle(MouseReleaseEvent *event) override;
    using LabelWidget::handle;
    void paint() override;

public:
    ButtonWidget();
};

}
